<?php defined('SYSPATH') or die('No direct script access.');

class Form extends Kohana_Form {

    public static function checkbox_list($name, $options=array()){
        $h='';
        foreach($options as $opt){
            $id_inp='chck_'.$name.'_'.$opt['value'];
            $h.='<div class="chck_list_pos">';
            $h.=self::checkbox($name, $opt['value'], $opt['checked'], array('id'=>$id_inp));
            $h.=self::label($id_inp, $opt['label'], array());
            $h.='</div>';
        }

        return $h;
    }
    
}
